package com.cloud.pole.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cloud.pole.api.merchant.ShopMerchantInfoApi;
import com.cloud.pole.api.merchant.ShopMerchantUserApi;
import com.cloud.pole.common.constant.ApiConstant;
import com.cloud.pole.common.msg.ApiRestResponse;

/*
*2019年8月5日
*cloud-shop
*author:frank-chen
*/
@FeignClient(value = ApiConstant.SHOP_MERCHANT_SERVICE_ID)
public interface IMerchantUserService {
	@RequestMapping(value=ApiConstant.SHOP_MERCHANT_GET_USERBYMOBILE, method = RequestMethod.GET)
	public ApiRestResponse<ShopMerchantUserApi> getUserByMobile(
			@RequestParam(name = "mobileArea", defaultValue = "") String mobileArea,
			@RequestParam(name = "mobile", defaultValue = "") String mobile);	
	
	@RequestMapping(value=ApiConstant.SHOP_MERCHANT_GET_ADD_USER, method = RequestMethod.POST)
	public ApiRestResponse<Long> addUser(@RequestBody ShopMerchantUserApi userApi);	
}
